package com.crm.model.entity.sendRoyaltyManager;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class OrderSendRoyaltyLogExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public OrderSendRoyaltyLogExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andOrderSendRoyaltyLogIdIsNull() {
            addCriterion("order_send_royalty_log_id is null");
            return (Criteria) this;
        }

        public Criteria andOrderSendRoyaltyLogIdIsNotNull() {
            addCriterion("order_send_royalty_log_id is not null");
            return (Criteria) this;
        }

        public Criteria andOrderSendRoyaltyLogIdEqualTo(String value) {
            addCriterion("order_send_royalty_log_id =", value, "orderSendRoyaltyLogId");
            return (Criteria) this;
        }

        public Criteria andOrderSendRoyaltyLogIdNotEqualTo(String value) {
            addCriterion("order_send_royalty_log_id <>", value, "orderSendRoyaltyLogId");
            return (Criteria) this;
        }

        public Criteria andOrderSendRoyaltyLogIdGreaterThan(String value) {
            addCriterion("order_send_royalty_log_id >", value, "orderSendRoyaltyLogId");
            return (Criteria) this;
        }

        public Criteria andOrderSendRoyaltyLogIdGreaterThanOrEqualTo(String value) {
            addCriterion("order_send_royalty_log_id >=", value, "orderSendRoyaltyLogId");
            return (Criteria) this;
        }

        public Criteria andOrderSendRoyaltyLogIdLessThan(String value) {
            addCriterion("order_send_royalty_log_id <", value, "orderSendRoyaltyLogId");
            return (Criteria) this;
        }

        public Criteria andOrderSendRoyaltyLogIdLessThanOrEqualTo(String value) {
            addCriterion("order_send_royalty_log_id <=", value, "orderSendRoyaltyLogId");
            return (Criteria) this;
        }

        public Criteria andOrderSendRoyaltyLogIdLike(String value) {
            addCriterion("order_send_royalty_log_id like", value, "orderSendRoyaltyLogId");
            return (Criteria) this;
        }

        public Criteria andOrderSendRoyaltyLogIdNotLike(String value) {
            addCriterion("order_send_royalty_log_id not like", value, "orderSendRoyaltyLogId");
            return (Criteria) this;
        }

        public Criteria andOrderSendRoyaltyLogIdIn(List<String> values) {
            addCriterion("order_send_royalty_log_id in", values, "orderSendRoyaltyLogId");
            return (Criteria) this;
        }

        public Criteria andOrderSendRoyaltyLogIdNotIn(List<String> values) {
            addCriterion("order_send_royalty_log_id not in", values, "orderSendRoyaltyLogId");
            return (Criteria) this;
        }

        public Criteria andOrderSendRoyaltyLogIdBetween(String value1, String value2) {
            addCriterion("order_send_royalty_log_id between", value1, value2, "orderSendRoyaltyLogId");
            return (Criteria) this;
        }

        public Criteria andOrderSendRoyaltyLogIdNotBetween(String value1, String value2) {
            addCriterion("order_send_royalty_log_id not between", value1, value2, "orderSendRoyaltyLogId");
            return (Criteria) this;
        }

        public Criteria andChsOrderSendRoyaltyIdIsNull() {
            addCriterion("chs_order_send_royalty_id is null");
            return (Criteria) this;
        }

        public Criteria andChsOrderSendRoyaltyIdIsNotNull() {
            addCriterion("chs_order_send_royalty_id is not null");
            return (Criteria) this;
        }

        public Criteria andChsOrderSendRoyaltyIdEqualTo(String value) {
            addCriterion("chs_order_send_royalty_id =", value, "chsOrderSendRoyaltyId");
            return (Criteria) this;
        }

        public Criteria andChsOrderSendRoyaltyIdNotEqualTo(String value) {
            addCriterion("chs_order_send_royalty_id <>", value, "chsOrderSendRoyaltyId");
            return (Criteria) this;
        }

        public Criteria andChsOrderSendRoyaltyIdGreaterThan(String value) {
            addCriterion("chs_order_send_royalty_id >", value, "chsOrderSendRoyaltyId");
            return (Criteria) this;
        }

        public Criteria andChsOrderSendRoyaltyIdGreaterThanOrEqualTo(String value) {
            addCriterion("chs_order_send_royalty_id >=", value, "chsOrderSendRoyaltyId");
            return (Criteria) this;
        }

        public Criteria andChsOrderSendRoyaltyIdLessThan(String value) {
            addCriterion("chs_order_send_royalty_id <", value, "chsOrderSendRoyaltyId");
            return (Criteria) this;
        }

        public Criteria andChsOrderSendRoyaltyIdLessThanOrEqualTo(String value) {
            addCriterion("chs_order_send_royalty_id <=", value, "chsOrderSendRoyaltyId");
            return (Criteria) this;
        }

        public Criteria andChsOrderSendRoyaltyIdLike(String value) {
            addCriterion("chs_order_send_royalty_id like", value, "chsOrderSendRoyaltyId");
            return (Criteria) this;
        }

        public Criteria andChsOrderSendRoyaltyIdNotLike(String value) {
            addCriterion("chs_order_send_royalty_id not like", value, "chsOrderSendRoyaltyId");
            return (Criteria) this;
        }

        public Criteria andChsOrderSendRoyaltyIdIn(List<String> values) {
            addCriterion("chs_order_send_royalty_id in", values, "chsOrderSendRoyaltyId");
            return (Criteria) this;
        }

        public Criteria andChsOrderSendRoyaltyIdNotIn(List<String> values) {
            addCriterion("chs_order_send_royalty_id not in", values, "chsOrderSendRoyaltyId");
            return (Criteria) this;
        }

        public Criteria andChsOrderSendRoyaltyIdBetween(String value1, String value2) {
            addCriterion("chs_order_send_royalty_id between", value1, value2, "chsOrderSendRoyaltyId");
            return (Criteria) this;
        }

        public Criteria andChsOrderSendRoyaltyIdNotBetween(String value1, String value2) {
            addCriterion("chs_order_send_royalty_id not between", value1, value2, "chsOrderSendRoyaltyId");
            return (Criteria) this;
        }

        public Criteria andProductOrderIdIsNull() {
            addCriterion("product_order_id is null");
            return (Criteria) this;
        }

        public Criteria andProductOrderIdIsNotNull() {
            addCriterion("product_order_id is not null");
            return (Criteria) this;
        }

        public Criteria andProductOrderIdEqualTo(String value) {
            addCriterion("product_order_id =", value, "productOrderId");
            return (Criteria) this;
        }

        public Criteria andProductOrderIdNotEqualTo(String value) {
            addCriterion("product_order_id <>", value, "productOrderId");
            return (Criteria) this;
        }

        public Criteria andProductOrderIdGreaterThan(String value) {
            addCriterion("product_order_id >", value, "productOrderId");
            return (Criteria) this;
        }

        public Criteria andProductOrderIdGreaterThanOrEqualTo(String value) {
            addCriterion("product_order_id >=", value, "productOrderId");
            return (Criteria) this;
        }

        public Criteria andProductOrderIdLessThan(String value) {
            addCriterion("product_order_id <", value, "productOrderId");
            return (Criteria) this;
        }

        public Criteria andProductOrderIdLessThanOrEqualTo(String value) {
            addCriterion("product_order_id <=", value, "productOrderId");
            return (Criteria) this;
        }

        public Criteria andProductOrderIdLike(String value) {
            addCriterion("product_order_id like", value, "productOrderId");
            return (Criteria) this;
        }

        public Criteria andProductOrderIdNotLike(String value) {
            addCriterion("product_order_id not like", value, "productOrderId");
            return (Criteria) this;
        }

        public Criteria andProductOrderIdIn(List<String> values) {
            addCriterion("product_order_id in", values, "productOrderId");
            return (Criteria) this;
        }

        public Criteria andProductOrderIdNotIn(List<String> values) {
            addCriterion("product_order_id not in", values, "productOrderId");
            return (Criteria) this;
        }

        public Criteria andProductOrderIdBetween(String value1, String value2) {
            addCriterion("product_order_id between", value1, value2, "productOrderId");
            return (Criteria) this;
        }

        public Criteria andProductOrderIdNotBetween(String value1, String value2) {
            addCriterion("product_order_id not between", value1, value2, "productOrderId");
            return (Criteria) this;
        }

        public Criteria andFormerMoneyIsNull() {
            addCriterion("former_money is null");
            return (Criteria) this;
        }

        public Criteria andFormerMoneyIsNotNull() {
            addCriterion("former_money is not null");
            return (Criteria) this;
        }

        public Criteria andFormerMoneyEqualTo(BigDecimal value) {
            addCriterion("former_money =", value, "formerMoney");
            return (Criteria) this;
        }

        public Criteria andFormerMoneyNotEqualTo(BigDecimal value) {
            addCriterion("former_money <>", value, "formerMoney");
            return (Criteria) this;
        }

        public Criteria andFormerMoneyGreaterThan(BigDecimal value) {
            addCriterion("former_money >", value, "formerMoney");
            return (Criteria) this;
        }

        public Criteria andFormerMoneyGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("former_money >=", value, "formerMoney");
            return (Criteria) this;
        }

        public Criteria andFormerMoneyLessThan(BigDecimal value) {
            addCriterion("former_money <", value, "formerMoney");
            return (Criteria) this;
        }

        public Criteria andFormerMoneyLessThanOrEqualTo(BigDecimal value) {
            addCriterion("former_money <=", value, "formerMoney");
            return (Criteria) this;
        }

        public Criteria andFormerMoneyIn(List<BigDecimal> values) {
            addCriterion("former_money in", values, "formerMoney");
            return (Criteria) this;
        }

        public Criteria andFormerMoneyNotIn(List<BigDecimal> values) {
            addCriterion("former_money not in", values, "formerMoney");
            return (Criteria) this;
        }

        public Criteria andFormerMoneyBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("former_money between", value1, value2, "formerMoney");
            return (Criteria) this;
        }

        public Criteria andFormerMoneyNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("former_money not between", value1, value2, "formerMoney");
            return (Criteria) this;
        }

        public Criteria andNewMoneyIsNull() {
            addCriterion("new_money is null");
            return (Criteria) this;
        }

        public Criteria andNewMoneyIsNotNull() {
            addCriterion("new_money is not null");
            return (Criteria) this;
        }

        public Criteria andNewMoneyEqualTo(BigDecimal value) {
            addCriterion("new_money =", value, "newMoney");
            return (Criteria) this;
        }

        public Criteria andNewMoneyNotEqualTo(BigDecimal value) {
            addCriterion("new_money <>", value, "newMoney");
            return (Criteria) this;
        }

        public Criteria andNewMoneyGreaterThan(BigDecimal value) {
            addCriterion("new_money >", value, "newMoney");
            return (Criteria) this;
        }

        public Criteria andNewMoneyGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("new_money >=", value, "newMoney");
            return (Criteria) this;
        }

        public Criteria andNewMoneyLessThan(BigDecimal value) {
            addCriterion("new_money <", value, "newMoney");
            return (Criteria) this;
        }

        public Criteria andNewMoneyLessThanOrEqualTo(BigDecimal value) {
            addCriterion("new_money <=", value, "newMoney");
            return (Criteria) this;
        }

        public Criteria andNewMoneyIn(List<BigDecimal> values) {
            addCriterion("new_money in", values, "newMoney");
            return (Criteria) this;
        }

        public Criteria andNewMoneyNotIn(List<BigDecimal> values) {
            addCriterion("new_money not in", values, "newMoney");
            return (Criteria) this;
        }

        public Criteria andNewMoneyBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("new_money between", value1, value2, "newMoney");
            return (Criteria) this;
        }

        public Criteria andNewMoneyNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("new_money not between", value1, value2, "newMoney");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdIsNull() {
            addCriterion("create_people_id is null");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdIsNotNull() {
            addCriterion("create_people_id is not null");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdEqualTo(String value) {
            addCriterion("create_people_id =", value, "createPeopleId");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdNotEqualTo(String value) {
            addCriterion("create_people_id <>", value, "createPeopleId");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdGreaterThan(String value) {
            addCriterion("create_people_id >", value, "createPeopleId");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdGreaterThanOrEqualTo(String value) {
            addCriterion("create_people_id >=", value, "createPeopleId");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdLessThan(String value) {
            addCriterion("create_people_id <", value, "createPeopleId");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdLessThanOrEqualTo(String value) {
            addCriterion("create_people_id <=", value, "createPeopleId");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdLike(String value) {
            addCriterion("create_people_id like", value, "createPeopleId");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdNotLike(String value) {
            addCriterion("create_people_id not like", value, "createPeopleId");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdIn(List<String> values) {
            addCriterion("create_people_id in", values, "createPeopleId");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdNotIn(List<String> values) {
            addCriterion("create_people_id not in", values, "createPeopleId");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdBetween(String value1, String value2) {
            addCriterion("create_people_id between", value1, value2, "createPeopleId");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdNotBetween(String value1, String value2) {
            addCriterion("create_people_id not between", value1, value2, "createPeopleId");
            return (Criteria) this;
        }

        public Criteria andCreateTmIsNull() {
            addCriterion("create_tm is null");
            return (Criteria) this;
        }

        public Criteria andCreateTmIsNotNull() {
            addCriterion("create_tm is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTmEqualTo(Date value) {
            addCriterion("create_tm =", value, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmNotEqualTo(Date value) {
            addCriterion("create_tm <>", value, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmGreaterThan(Date value) {
            addCriterion("create_tm >", value, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmGreaterThanOrEqualTo(Date value) {
            addCriterion("create_tm >=", value, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmLessThan(Date value) {
            addCriterion("create_tm <", value, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmLessThanOrEqualTo(Date value) {
            addCriterion("create_tm <=", value, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmIn(List<Date> values) {
            addCriterion("create_tm in", values, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmNotIn(List<Date> values) {
            addCriterion("create_tm not in", values, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmBetween(Date value1, Date value2) {
            addCriterion("create_tm between", value1, value2, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmNotBetween(Date value1, Date value2) {
            addCriterion("create_tm not between", value1, value2, "createTm");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}